home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Developer Utilities / Installer 4.0.3 SDK / Script Examples / File Compare by Procedure / Makefile < prev    next >
Encoding:
Makefile  |  1994-11-15  |  1.8 KB  |  52 lines  |  [TEXT/MPS ]

  1. #
  2. #    mark young • 08/30/94
  3. #    
  4.  
  5. # To build this example, choose the "Build…" menu item from within
  6. # the "Build" menu in MPW. When asked for Program Name, type in the 
  7. # script name, in this case "myCompareProc" ( without double quotes ) 
  8. # and press the Enter key. Be sure that the Current Working Directory
  9. # for MPW is set to the directory containing this example.
  10.  
  11. # To build the Debugger version of this example, choose the "Build…" 
  12. # menu item from within the "Build" menu in MPW. When asked for Program 
  13. # Name, type in the script name, in this case "myCompareProc.debug" ( without 
  14. # double quotes ) and press the Enter key. Be sure that the Current 
  15. # Working Directory for MPW is set to the directory containing this example.
  16.  
  17. scriptName                = myCompareProc
  18. debugScriptName            = {scriptName}.debug
  19.  
  20. sourceFile                = GetFileVersion
  21.  
  22. OBJECTS                    = GetFileVersion.c.o
  23. ScriptCheckDir            = :::ScriptCheck 4.0.3:
  24. InstallerRIncDir        = :::DeveloperInterfaces:RIncludes:
  25. InstallerCIncDir        = :::DeveloperInterfaces:CIncludes:
  26. InstallerDebuggerDir    = :::Installer Debugger 4.0:
  27.  
  28. COptions        = -b -r -sym on
  29. LinkOptions        = -mf -sym on
  30.  
  31.  
  32. "{debugScriptName}" ƒ "{scriptName}"
  33.     Duplicate -y "{scriptName}" "{scriptName} w/ Debugger"
  34.     Rez -m "{InstallerDebuggerDir}Installer Debugger.r" -append -o "{scriptName} w/ Debugger"
  35.  
  36. "{scriptName}" ƒƒ "{sourceFile}" "{scriptName}.r"
  37.     set theTime    "'`date -d -s` 12:00:00 PM'"
  38.     Rez "{scriptName}.r" -o "{scriptName}" -t 'kajr' -c 'kajr' -i "{InstallerRIncDir}"
  39.     SetFile -a b -d {theTime} "{scriptName}"
  40.     "{ScriptCheckDir}ScriptCheck" "{scriptName}" -h -d -a
  41.     SetFile -m {theTime} "{scriptName}"
  42.  
  43.  
  44. "{sourceFile}" ƒƒ Makefile "{OBJECTS}"
  45.     Link {LinkOptions} -t rsrc -c RSED -rt infn=128 -m "{sourceFile}" -sg "{sourceFile}" ∂
  46.         "{OBJECTS}" ∂
  47.         -o "{sourceFile}"
  48.         
  49. "{sourceFile}.c.o" ƒ Makefile "{sourceFile}.c"
  50.     C {COptions} "{sourceFile}.c" -i "{InstallerCIncDir}"
  51.  
  52.